<?php
require_once "ProductVO.php";

class CoverVO extends ProductVO {
	public $_explicitType = "presstrack.products.CoverVO";
    
	function __construct($type) {
		$pr->label = "обложка";
		switch($type)
		{
		case "magazine":			
			$pr->run = 1000;	
			$pr->size = "420x297";
			$pr->color = "C,M,Y,K + 0";
		break;
		case "catalog":
			$pr->run = 1000;	
			$pr->size = "420x297";
			$pr->color = "C,M,Y,K + 0";
		break;
		case "book":
			$pr->run = 1000;	
			$pr->size = "210x297";
			$pr->color = "C,M,Y,K + 0";
		break;
		}		
		$this->arOfProduct[] = $pr;
		$this->setTasks($type);
    }
	
	function setTasks($type)
	{
		switch($type)
		{
		case "magazine":
			$task_paper['label']	= 'бумага';
			$task_paper['value']	= 'название : Art\rплотность : 130\rформат : 47x65\rдоля резки : 1/2\rзаказчика : set';
			$task_paper['section']	= 2;
			$task_paper['state']	= 1;
		
			$task_impos['label']	= 'спуск полос';
			$task_impos['value']	= 'спуск : 1x1';
			$task_impos['section']	= 3;
			$task_impos['state']	= 1;
		
			$task_ctp['label']		= 'вывод форм';
			$task_ctp['value']		= 'форм : 4';
			$task_ctp['section']	= 3;
			$task_ctp['state']		= 1;
		
			$task_press['label']	= 'печать';
			$task_press['value']	= 'машина : SM-52\rтираж : 1000\rна приладку : 350\rформат печати : 465x323\rкрасочность : 4+0';
			$task_press['section']	= 4;
			$task_press['state']	= 1;
		
			$task_big['label']		= 'биговка';
			$task_big['value']		= 'бигов : 1';
			$task_big['section']	= 5;
			$task_big['state']		= 1;
		
			$task_cut['label']		= 'резка';
			$task_cut['value']		= 'тип : в формат';
			$task_cut['section']	= 5;
			$task_cut['state']		= 1;
		break;
		case "catalog":
			$task_paper['label']	= 'бумага';
			$task_paper['value']	= 'название : Art\rплотность : 200\rформат : 47x65\rдоля резки : 1/2\rзаказчика : set';
			$task_paper['section']	= 2;
			$task_paper['state']	= 1;
		
			$task_impos['label']	= 'спуск полос';
			$task_impos['value']	= 'спуск : 1x1';
			$task_impos['section']	= 3;
			$task_impos['state']	= 1;
		
			$task_ctp['label']		= 'вывод форм';
			$task_ctp['value']		= 'форм : 4';
			$task_ctp['section']	= 3;
			$task_ctp['state']		= 1;
		
			$task_press['label']	= 'печать';
			$task_press['value']	= 'машина : SM-52\rтираж : 1000\rна приладку : 350\rформат печати : 465x323\rкрасочность : 4+0';
			$task_press['section']	= 4;
			$task_press['state']	= 1;
		
			$task_big['label']		= 'биговка';
			$task_big['value']		= 'бигов : 2';
			$task_big['section']	= 5;
			$task_big['state']		= 1;
		
			$task_cut['label']		= 'резка';
			$task_cut['value']		= 'тип : в формат';
			$task_cut['section']	= 5;
			$task_cut['state']		= 1;
		break;
		
		case "book":
			$task_paper['label']	= 'бумага';
			$task_paper['value']	= 'название : Art\rплотность : no set\rформат : set\rдоля резки : set\rзаказчика : set';
			$task_paper['section']	= 2;
			$task_paper['state']	= 1;
		
			$task_impos['label']	= 'спуск полос';
			$task_impos['value']	= 'спуск : 1x1';
			$task_impos['section']	= 3;
			$task_impos['state']	= 1;
		
			$task_ctp['label']		= 'вывод форм';
			$task_ctp['value']		= 'форм : 8';
			$task_ctp['section']	= 3;
			$task_ctp['state']		= 1;
		
			$task_press['label']	= 'печать';
			$task_press['value']	= 'машина : SM-52\rтираж : 500\rна приладку : 100\rформат печати : 500x350\rкрасочность : 4+1';
			$task_press['section']	= 4;
			$task_press['state']	= 1;
		
			$task_big['label']		= 'биговка';
			$task_big['value']		= 'бигов : 1';
			$task_big['section']	= 5;
			$task_big['state']		= 1;
		
			$task_cut['label']		= 'резка';
			$task_cut['value']		= 'тип : в формат';
			$task_cut['section']	= 5;
			$task_cut['state']		= 1;
		break;
		}
		
		$this->arOfTasks[] = $task_paper;
		$this->arOfTasks[] = $task_impos;
		$this->arOfTasks[] = $task_ctp;
		$this->arOfTasks[] = $task_press;
		$this->arOfTasks[] = $task_big;	
		$this->arOfTasks[] = $task_cut;		
	}
}
?>